package com.github.live.adapter;

import java.util.List;

public class LiveSettingItem {
    private String groupName;
    private boolean isSelected;
    private List<LiveSettingItem> children;
    public LiveSettingItem() {
    }
    public LiveSettingItem(String name) {
        this.groupName = name;
    }

    public String getName() {
        return groupName;
    }

    public void setName(String groupName) {
        this.groupName = groupName;
    }

    public List<LiveSettingItem> getChildren() {
        return children;
    }

    public void setChildren(List<LiveSettingItem> children) {
        this.children = children;
    }
    public void selected() {
        this.isSelected = true;
    }
    public void cancel() {
        this.isSelected = false;
    }
    public void setSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }
    public boolean isSelected() {
        return isSelected;
    }
}
